<?php

require_once 'vendor/Arc90/Twitter.php';

class Twitter
{
  static public function getLastestTwit()
  {
    $twitter = new Arc90_Service_Twitter($username=sfConfig::get('app_twitter_username'), $password=sfConfig::get('app_twitter_password'));
    
    $response = json_decode($twitter->getUserTimeline()->getData(), true);
    
    return $response[0];
  }
}
